//
//  YHYHunterCitySubCollectionViewCell.m
//  TripTogether
//
//  Created by 杨泓晔 on 15/12/25.
//  Copyright © 2015年 杨泓晔. All rights reserved.
//

#import "YHYHunterCitySubCollectionViewCell.h"

@interface YHYHunterCitySubCollectionViewCell ()
@property (nonatomic,retain)UILabel *myLabel;
@end

@implementation YHYHunterCitySubCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self zz];
    }
    return self;
}
- (void)zz{
    _myLabel = [UILabel new];
    _myLabel.frame = self.bounds;
    _myLabel.backgroundColor = [UIColor whiteColor];
    _myLabel.textColor = [UIColor colorWithWhite:0.741 alpha:1.000];
    _myLabel.layer.masksToBounds = YES;
    //    设置半径
    _myLabel.layer.cornerRadius = 4;
    //    设置边框宽度
    _myLabel.textAlignment = NSTextAlignmentCenter;
    _myLabel.adjustsFontSizeToFitWidth = YES;
    
    _myLabel.layer.borderWidth = 1.f;
    _myLabel.layer.borderColor = [UIColor colorWithWhite:0.8126 alpha:1.0].CGColor;
    [_myLabel setFont:[UIFont fontWithName:@"Lao Sangam MN" size:15]];
    [self.contentView addSubview:_myLabel];
}
- (void)setMyStr:(NSString *)myStr{
    _myLabel.text = myStr;
}

@end
